package com.webbei.xixiaoming.action;

import java.util.List;

import com.webbei.pojo.Customcomment;
import com.webbei.xixiaoming.service.xixiaomingService;

public class getCustomComm {
	private Long id;
	private String type;
	private xixiaomingService xixiSer;

	private List<Customcomment> clist;
	private Integer listsize;
	public String execute(){

	if (type.equals("o")) {
		clist = xixiSer.getCommentByOrderid(id);
	} else {
		clist = xixiSer.getCommentByCustomid(id);
	}
	listsize=clist.size();

		return "success";
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public List<Customcomment> getClist() {
		return clist;
	}
	public void setClist(List<Customcomment> clist) {
		this.clist = clist;
	}
	public Integer getListsize() {
		return listsize;
	}
	public void setListsize(Integer listsize) {
		this.listsize = listsize;
	}
	public void setXixiSer(xixiaomingService xixiSer) {
		this.xixiSer = xixiSer;
	}
}
